import axios from 'axios';
//更新操作
let edit = (operation_id,data) => axios.put(`/operation/${operation_id}`, data);
//删除操作按钮
let remove = (operation_id,params) => axios.delete(`/operation/${operation_id}`, {params});
// 添加新的操作按钮
let add = (data) => axios.post('/operation', data);
// 获取操作按钮列表
let list = (params) => axios.get('/operation/list', { params });
export default {
	remove,
	edit,
	list,
	add
}